<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>整车调价管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/rentprod/tRentprod/">包车调价列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="tRentprod" action="${ctx}/rentprod/tRentprod/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<div>
			<label>车型：</label>
			<select id="cargotypeid" name="cargotype.cargotypeid" class="input-large">
				<option value="">请选择</option>
				<c:forEach items="${cargotypelist }" var="cartype">
					<option value="${cartype.cargotypeid }" ${tRentprod.cargotype.cargotypeid == cartype.cargotypeid?"selected":"" }>${cartype.typename }</option>
				</c:forEach>
			</select>
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
		</div>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>车型</th>
				<shiro:hasPermission name="rentprod:tRentprod:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tRentprod">
			<tr>
				<td>
					${tRentprod.cargotype.typename}
				</td>
				<td>
					<shiro:hasPermission name="rentprod:tRentprod:edit">
    				<a href="${ctx}/rentprod/tRentprodModify/busprodlist?forsaleid=${tRentprod.forsaleid}">调价</a>
    				</shiro:hasPermission>
    				<shiro:hasPermission name="rentprod:tRentprod:view">
    				<a href="${ctx}/rentprod/tRentprodPrice/?forsaleid=${tRentprod.forsaleid}">调价区间</a>
    				</shiro:hasPermission>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>